package homework.shiwu2;

public class UserServiceImpl implements UserService {
    @Override
    public void createUser(String username) {
        System.out.println("创建用户: " + username);
        // 模拟数据库操作
        if (username.contains("error")) {
            throw new RuntimeException("模拟数据库操作异常");
        }
    }
}
